//
//  HJEventkit.h
//  project
//
//  Created by hu on 2019/4/9.
//  Copyright © 2019 健健. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <EventKit/EventKit.h>
#import <EventKitUI/EventKitUI.h>

NS_ASSUME_NONNULL_BEGIN

@interface HJEventkit : NSObject

+(instancetype)shareEventKit;

@property(nonatomic, readonly) NSString *eventTitle;
/**
 唯一标识符区分某个事件.修改事件有可能
 */
@property(nonatomic, readonly) NSString *eventIdentifier;
/**
 设置是否是全天事件
 */
@property(nonatomic, getter=isAllDay) BOOL allDay;
/**
 事件开始时间
 */
@property(nonatomic, copy) NSDate *startDate;
/**
 结束时间
 */
@property(nonatomic, copy) NSDate *endDate;
/**
 事件里添加的位置。可以获取到经纬度等相关信息。
 */
@property(nonatomic, copy, nullable) EKStructuredLocation *structuredLocation;

-(void)initWithEventKitWithDataDic:(NSDictionary *)dic success:(void(^)(NSString * hudStr))success error:(void(^)(NSString * errorStr))error;

@end

NS_ASSUME_NONNULL_END
